﻿@model Webcar.Entitys.SEC_MONTH_REPORT

@{ Layout = "~/Views/Shared/_leftPanelLayout.cshtml";}
@section LeftTree
{
     
    @{
        Html.RenderPartial("DeptTreePartialView", new Webcar.Models.DeptTreeMode { Action = "List", Controller = "Report", ShowChild = false });
     }
}

    
<div style="margin:5px 5px 5px 5px">
@using (Html.BeginForm("Edit", "Report", Html.ViewContext.RouteData.Values, FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.Hidden("ReturnUrl",Request.QueryString["ReturnUrl"])
    <div id="edit-car" style="width:700px;">
    @Html.HiddenFor(a => a.XH)

        <table class="edit-table">
            <tr>
                <td style="text-align: right">*月份：</td>
                <td >@Html.TextBoxFor(a=>a.NY)</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right;">*所属单位：</td>
                <td>@Html.DropDownListFor(a => a.DEPT_CODE, WebcarDataHelper.UserSuperDeptList, new { @style = "width: 100%;" })</td>
            </tr>

            <tr>
                <td style="text-align: right">上报人：</td>
                <td >@Html.TextBoxFor(a => a.man_name, new { @readonly="readonly" })</td>
            </tr>
            <tr>
                <td style="text-align: right">类别：</td>
                <td >@Html.DropDownListFor(a=>a.REPORT_KIND,new SelectList(WebcarDataHelper.ReportKind,"Item1","Item2"))</td>
            </tr>

            <tr>
                <td style="text-align: right">*内容：</td>
                <td colspan="3">@Html.TextAreaFor(a=>a.CONTENT,20,30,new{style="width:100%"})</td>
            </tr>


        </table>
        
        <div class="validation-errors">@ViewBag.ErrorMessage</div>
        <hr />
    </div>
    
    <table style="width:700px">
        <tr>
            <td style="width:650px;"></td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.Name = "Button1";
                    settings.Text = CurrentUser.CheckPermission(PermissionManager.填写情况汇报) ? "保存" : "无权限";
                    settings.Enabled = CurrentUser.CheckPermission(PermissionManager.填写情况汇报);
                    settings.UseSubmitBehavior = true;
                    settings.Width = 70;
                    settings.ControlStyle.CssClass = "button1";
                }).GetHtml()
                

            </td>
            <td>
                @Html.DevExpress().Button(settings =>
                {
                    settings.ControlStyle.CssClass = "button2";
                    settings.Name = "Button2";
                    settings.Text = "取消";
                    settings.Width = 70;
                    settings.ClientSideEvents.Click = "function(s, e){history.back(); }";
                }).GetHtml()
            </td>
        </tr>

    </table>
}
</div>            
 